package com.homesoft.runtime.core.loaders;

/**
 * Hash表中的Key，根据名称查找
 * @author niumg
 *
 */
public class RuntimeClassInfoKey {
	
	private String metadataName;
	
    /// <summary>
    /// 元数据名称
    /// </summary>
    public String getMetadataName() {
		return metadataName;
	}

    public RuntimeClassInfoKey(String metadataName)
    {
        this.metadataName = metadataName;
    }
    
    @Override
    public int hashCode()
    {
        return this.metadataName.hashCode();
    }
    
    @Override
    public boolean equals(Object obj)
    {
        return (obj == RuntimeClassInfoKey.class) && ((RuntimeClassInfoKey)obj).metadataName == metadataName;
    }
    
    @Override
    public String toString()
    {
        return metadataName;
    }
}